package com.jiruan.invoicemanagementsystem.dao;

import com.jiruan.invoicemanagementsystem.pojo.Address;
import com.jiruan.invoicemanagementsystem.util.PageHelper;

import java.util.ArrayList;

public interface IAddressDao {

    public ArrayList<Address> selectAllAddress();

    //获取默认的邮寄地址信息
    public Address selectDefaultAddress() ;

    //根据条件信息查找并将地址设置为默认邮寄地址
    int updateEmailAddressById(Address address);


    //设置默认邮箱信息
    public int updateAddressById(Address address);

    //添加一条新的地址信息
    int insertNewAddress(Address address);


    public ArrayList<Address> selectPageAllAddress(PageHelper ph);


    public int queryAddressCount();
}
